// @ts-ignore
/* eslint-disable */
import { OpenApi as request } from "@/utils/request";

/** 关于我们 GET /mall/config/aboutUs/detail */
export async function getAboutUsDetail(options?: { [key: string]: any }) {
  return request<API.BaseResponseShopConfigDto>(
    `/barter-user/mall/config/aboutUs/detail`,
    {
      method: "GET",
      ...(options || {}),
    }
  );
}

/** 平台客服详情 GET /mall/config/platform/customer/detail */
export async function getPlatformCustomer(options?: { [key: string]: any }) {
  return request<API.BaseResponseShopWechatCustomerConfigDto>(
    `/barter-user/mall/config/platform/customer/detail`,
    {
      method: "GET",
      ...(options || {}),
    }
  );
}

/** 获取用户协议隐私政策 GET /mall/config/protocol */
export async function getConfigProtocol(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getConfigProtocolParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseMapStringObject>(
    `/barter-user/mall/config/protocol`,
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
